/******************************

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <iostream>
//for setw, precision()
#include <iomanip>
using namespace std;

class Vector
{
	int n;
	float *p;
public:
	Vector(){};
	Vector(int size){
		n = size;
		p = new float[n];
		for (int i = 0; i < n; i++)
		{
			p[i] = 0;
		}
	};
	int getN(){
		return n;
	}
	void nhap(){
		cout<<"\nNhap n:";
		cin>>n;
		p = new float[n];
		if(p == NULL)
		{
			cout << "\nERROR!";
			getch();
		}
		cout<<"\nNhap mang: ";
		for (int i = 0; i < n; i++)
		{
			cout<<"\nNhap pt["<<i<<"]";
			cin >> p[i];
		}
	}
	void in(){
		cout<<"\nHien thi";
		for (int i = 0; i < n; i++)
		{
			cout<<" "<<p[i];
		}
	}

	Vector tong(Vector v){
		Vector r(n);
		for (int i = 0; i < n; i++)
		{
			r.p[i] = p[i] + v.p[i];
		}
		return r;
	}

};

void main(){
	Vector v1, v2;
	v1.nhap();
	v1.in();
	v2.nhap();
	v2.in();
	Vector v3(v1.getN());
	v3 = v1.tong(v2);
	v3.in();
	getch();

}

/**********************************/